compression.htmlHTMLudogÌπùΔ¢πùΔ¢ÅÅY Monkeybread Realbasic plugin - Documentation - Compression

MBS Plugin Documentation

This is the documentation for the Realbasic Plugins from Monkeybreadsoftware.de. You find these plugins and the newest version of this document at http://www.monkeybreadsoftware.de/realbasic inside the plugins section.

This help was last updated on Freitag, 6. September 2002 and covers 2136 items: 126 classes, 2 controls and 583 global functions.

The list of the themes Global methods by category Global methods by name The list of the classes The list of the controls

Compress(data as string,level as integer) as string

global method, Compression So, 28. Apr 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: Works.
Function: Compresses the data and returns it as string.
Example: s=compress(s,9)
Notes:
Compress uses the zlib library in version 1.1.3.
Compression level is going from 0 to 9, where 0 is no compression and 9 is best compression.

UnCompress(data as string,size as integer) as string

global method, Compression So, 28. Apr 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: Works.
Function: Uncompresses the data and returns it as string.
Example: s=uncompress(s,10000)
Notes:
Uncompress uses the zlib library in version 1.1.3.
As Uncompress can't know the size of the uncompressed data you should give it a hint. Best is to save the size of the umcompressed data on compression. Else you must guess the size which can be 10 times the size of the compressed data.

Contact

Written 2002 by Christian Schmitz. Feel free to ask or report mistakes to realbasic@macsw.de.
Thanks.

This resource fork intentionally left blank ˇˇ